#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "porte-monnaie.h"
#include "pion.h"
#include "plateau.h"
#include "stockcartecourrier.h"
#include "stockcartetransaction.h"
#include "listecartecourrier.h"
#include "listecartetransaction.h"

int main()
{
    /*Porte_Monnaie Pauvre;
    Porte_Monnaie Riche;
    InitialiserPorte_Monnaie(&Pauvre, 2);
    InitialiserPorte_Monnaie(&Riche, 2134);
    RajouterArgent(&Pauvre, 200);
    PerdreArgent(&Riche, 348);
    printf("%d \n",Pauvre.argent);
    printf("%d \n",Riche.argent);
    Pion Rose;
    Pion Violet;
    numerodeR1=1;
    numerodeR2=2;
    numerodeV1=6;
    numerodeV2=5;
    InitialiserPion(&Violet, 1, 547);
    InitialiserPion(&Rose, 2 ,1222);
    printf("%d \n", Violet.couleur);
    printf("%d \n", Rose.couleur);
    printf("%d \n", Violet.monnaie.argent);
    printf("%d \n", Rose.monnaie.argent);
    ListeCourrier piocheC;
    CarteCourrier c1;
    c1.numero_carte=1;
    c1.argent_carte=56;
    InitCarteC (&c1, 1,-50);
    ImplementeListeC (&piocheC);
    AjouterEnTeteListeC(c1, &piocheC);
    printf("%d \n", EstVideListeC(&piocheC));
    printf ("%d \n", RecupererPremiereCarteC (&piocheC).argent_carte);

    ListeTransaction piocheT;
    CarteTransaction t1;
    InitCarteT (&t1, 23, 350, 1045);
    ImplementeListeT (&piocheT);
    AjouterEnTeteListeT(t1, &piocheT);
    printf("%d \n", EstVideListeT(&piocheT));
    printf ("%d \n", RecupererPremiereCarteT (&piocheT).prix_achat);*/
    /*RecupererPremiereCarteC (&piocheC);
    MettreCartesPiocheC (&piocheC);
    c1=RecupererPremiereCarteC (&piocheC);
    printf("%d \n",c1.argent_carte); */

    /*Carte c2;
    Carte *c3;
    c1->intitule="Test1";
    c1.type_carte=1;
    c1.fait_carte=1;
    StockCarte t;
    InitialiserTabDyn(&t);
    AjouterElementTabDyn(&t, c1);
    c2=ValeurIemeElementTabDyn(&t,0);*/
    Pion p;
    InitialiserPion(&p, 4, 650);
    printf("%d \n", p.monnaie.argent);
    ChangerArgent(&(p.monnaie), -200);
    printf("%d \n", p.monnaie.argent);

    return 0;
}
